import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/login/Login.vue'
const Index = () => import("@/components/product/Index.vue")

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:"/product/index"
    },
    {
      path: '/product/index',
      name: 'Index',
      component: Index,
      meta:{
        title:"首页",
        requireAuth:true
      },
      children:[

      ]
    },
    {
      path: '/login',
      name:"Login",
      component: Login,
    },
  ]
})
